<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/12/30
  Time: 9:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商家管理</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        h3, p {
            text-align: center;
        }

        table {
            width: 80%;
            border-collapse: collapse;
            margin: 20px auto;
        }

        table, th, td {
            border: 1px solid #ddd;
        }

        th, td {
            padding: 10px;
            text-align: center;
        }

        form {
            margin: 20px auto;
            text-align: center;
        }

        label, input, select {
            margin: 5px;
        }

        input[type="submit"] {
            padding: 8px 16px;
            background-color: #27ba9b;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        input[type="submit"]:hover {
            background-color: #45a049;
        }

        hr {
            margin: 20px auto;
            width: 80%;
            border: 0.5px solid #ddd;
        }
    </style>
    </style>
</head>

<body>

<p style="text-align: center;font-size: 20px">商家信息管理</p>
<table style="text-align: center">
    <tr>
        <td>商家编号</td><td>商家名称</td><td>注册文件</td><td>商家手机号</td><td>最近一次登录时间</td><td>顾客手机号</td><td>顾客最近一次登录时间</td><td>商家当前登录状态</td><td>店铺介绍</td>
    </tr>
</table>
<form id="merchantTable" method="get">
    <input type="hidden" name="personAffected" value="merchant">
    <input type="text" name="mid" value="<%=m.getMid()%>">
    <input type="text" name="mname" value="<%=m.getMname()%>">
    <input type="text" name="certifi" value="<%=m.getCertifi()%>">
    <input type="text" name="m_phone" value="<%=m.getM_phone()%>"><br>
    <input type="text" name="lg_time" value="<%=m.getLg_time()%>">
    <input type="text" name="m_status" value="<%=m.isM_status()%>">
    <input type="text" name="m_intro" value="<%=m.getM_intro()%>"><br>
    <input type="submit" id="update_merchant" value="修改">
    <input type="submit" id="delete_merchant" value="删除">
</form>



<h3 style="text-align: center">商家信息查询</h3>


<form id="selectTable" method="get">
    <input type="hidden" name="personAffected" value="customer">
    <label for="all">查询全部商家:</label>
    |<input type="submit" id="all" value="查询">
    <br>
    <label>按照商家id查询:</label>
    <input type="text" name="mid">|<input type="submit" id="by_mid" value="查询">
    <br>
    <label>根据商家名称关键字查询:</label>
    <input type="text" name="mname">|<input type="submit" id="like_name" value="查询">
    <br>
    <!-- 单选按钮 -->
    <label>按照商家注册手机号查询:</label>
    <input type="text" name="m_phone">|<input type="submit" id="by_m_phone" value="查询">
    <br>
    <label>按照登录时间查询:</label>
    <input type="radio"  name="lg_time" value="latest" checked>
    <label>最近</label>
    <input type="radio"  name="lg_time" value="earliest">
    <label>最晚</label>|
    <input type="submit" id="orderBy_lg_time" value="查询">
    <br>
    <label>按照登录状态查询:</label>
    <input type="radio" name="m_status" value="1" checked>
    <label>在线</label>
    <input type="radio" name="m_status" value="0">
    <label>离线</label>|
    <input type="submit" id="by_m_status" value="查询">
    <br>
    <p style="text-align: center">

        <input type="submit" id="cmd_page_first" value="首页">|
        <input type="submit" id="cmd_page_before" value="上一页">|
        <input type="submit" id="cmd_page_next" value="下一页">|
        <input type="submit" id="cmd_page_last" value="尾页">
    </p>
</form>
<hr>
<table width="80%" border="1" align="center">
    <tr>
        <th width="15%">商家编号</th>
        <th width="20%">商家名称</th>
        <th width="15%">商家手机号</th>
        <th width="15%">最近一次登录时间</th>
        <th width="5%">登录状态</th>
        <th width="30%">商家介绍</th>
    </tr>

    <tr>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
    </tr>

</table>
</body>
</html>
<head>
    <title>Title</title>
</head>
<body>

</body>
</html>
